﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace LG.Web
{
    public static class CacheHelper
    {
        public static object Add(string key, object value)
        {
            return HttpContext.Current.Cache.Add(key, value, null, System.Web.Caching.Cache.NoAbsoluteExpiration,
                System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.Default, null);
        }

        public static object remove(string key)
        {
            return HttpContext.Current.Cache.Remove(key);
        }

        public static object Get(string key)
        {
            return HttpContext.Current.Cache.Get(key);
        }
    }
}
